package logger

type Target interface {
	IgnoreCheck(*Context) bool
	Print(*Context)
}

type FakeTarget struct {
	Level    Level
	PrintCnt int
}

func (t *FakeTarget) IgnoreCheck(ctx *Context) bool {
	return ctx.Level() < t.Level
}

func (t *FakeTarget) Print(ctx *Context) {
	t.PrintCnt++
}
